<?php namespace app\admin\validate;
use think\Validate;
//图片验证
class Banner extends Validate{
	protected $rule =   [
        'pname'        => 'require|max:25',
        'sort'         => 'require|number|between:1,100',
        'pics'         => 'require',  
//      'is_show'      => 'require',  
    ];
    
    protected $message  =   [
        'pname.require'       => '请输入图片介绍！',
        'pname.max'           => '图片介绍最多25个字符！',
        'sort.require'        => '请输入图片排序',
        'sort.number'         => '图片排序只能是数字',
        'sort.between'        => '图片排序只能在1-100之间',
        'pics.require'        => '请上传图片！',
      
    ];
	
}

